package com.example.analysis.entity;

import java.io.Serializable;

/**
 * detail
 * @author 
 */
public class Detail implements Serializable {
    private String majorId;

    private String coursePlatform;

    private String plaName;

    private Double compulsory;

    private Double elect;

    private Double sumScore;

    private String grade;

    private static final long serialVersionUID = 1L;

    public String getMajorId() {
        return majorId;
    }

    public void setMajorId(String majorId) {
        this.majorId = majorId;
    }

    public String getCoursePlatform() {
        return coursePlatform;
    }

    public void setCoursePlatform(String coursePlatform) {
        this.coursePlatform = coursePlatform;
    }

    public String getPlaName() {
        return plaName;
    }

    public void setPlaName(String plaName) {
        this.plaName = plaName;
    }

    public Double getCompulsory() {
        return compulsory;
    }

    public void setCompulsory(Double compulsory) {
        this.compulsory = compulsory;
    }

    public Double getElect() {
        return elect;
    }

    public void setElect(Double elect) {
        this.elect = elect;
    }

    public Double getSumScore() {
        return sumScore;
    }

    public void setSumScore(Double sumScore) {
        this.sumScore = sumScore;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Detail other = (Detail) that;
        return (this.getMajorId() == null ? other.getMajorId() == null : this.getMajorId().equals(other.getMajorId()))
            && (this.getCoursePlatform() == null ? other.getCoursePlatform() == null : this.getCoursePlatform().equals(other.getCoursePlatform()))
            && (this.getPlaName() == null ? other.getPlaName() == null : this.getPlaName().equals(other.getPlaName()))
            && (this.getCompulsory() == null ? other.getCompulsory() == null : this.getCompulsory().equals(other.getCompulsory()))
            && (this.getElect() == null ? other.getElect() == null : this.getElect().equals(other.getElect()))
            && (this.getSumScore() == null ? other.getSumScore() == null : this.getSumScore().equals(other.getSumScore()))
            && (this.getGrade() == null ? other.getGrade() == null : this.getGrade().equals(other.getGrade()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMajorId() == null) ? 0 : getMajorId().hashCode());
        result = prime * result + ((getCoursePlatform() == null) ? 0 : getCoursePlatform().hashCode());
        result = prime * result + ((getPlaName() == null) ? 0 : getPlaName().hashCode());
        result = prime * result + ((getCompulsory() == null) ? 0 : getCompulsory().hashCode());
        result = prime * result + ((getElect() == null) ? 0 : getElect().hashCode());
        result = prime * result + ((getSumScore() == null) ? 0 : getSumScore().hashCode());
        result = prime * result + ((getGrade() == null) ? 0 : getGrade().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", majorId=").append(majorId);
        sb.append(", coursePlatform=").append(coursePlatform);
        sb.append(", plaName=").append(plaName);
        sb.append(", compulsory=").append(compulsory);
        sb.append(", elect=").append(elect);
        sb.append(", sumScore=").append(sumScore);
        sb.append(", grade=").append(grade);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}